﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace Product.API.Read.Controllers
{
    /// <summary>
    /// Apolo控制器
    /// </summary>
    [Route("api/[controller]")]
    [ApiController]
    public class ApolloController : ControllerBase
    {
        private readonly IConfiguration configuration;

        public ApolloController(IConfiguration configuration)
        {
            this.configuration = configuration;
        }

        [HttpPost]
        public string GetConfiguration(string name)
        {
            var a = configuration.GetValue<string>(name);
            return a;
        }

    }
}
